package com.molichuxing.services.infrastructure.service;

import com.molichuxing.framework.service.RootService;
import com.molichuxing.services.infrastructure.dto.request.create.OrderDeliveryCreateDto;
import com.molichuxing.services.infrastructure.dto.response.OrderDeliveryDto;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 订单提车表 服务类
 * </p>
 *
 * @author renzhengyu
 * @since 2019-08-12
 */
public interface OrderDeliveryService extends RootService {

    /**
     * 查询订单交车信息
     *
     * @param orderCode 订单号
     * @return
     */
    OrderDeliveryDto getOrderDelivery(Long orderCode);

    /**
     * 查询订单交车信息
     *
     * @param orderCodes 订单号
     * @return
     */
    Map<Long, OrderDeliveryDto> getOrderDelivery(List<Long> orderCodes);

    /**
     * 新增交车表信息
     *
     * @param createDto
     * @return
     */
    Boolean create(OrderDeliveryCreateDto createDto);
}
